package com.chifaner.tfs.token.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.chifaner.tfs.token.entry.AppInfo;
import com.chifaner.tfs.token.mapper.AppInfoMapper;
import com.chifaner.tfs.token.service.AppInfoService;


@Service("appInfoService")
@Transactional(rollbackFor = Exception.class)
public class AppInfoServiceImpl implements AppInfoService {

	@Autowired
	private AppInfoMapper appInfoMapper;
	
	public void addInfo(AppInfo info) {
		appInfoMapper.insertSelective(info);
	}

	public void delete(Integer oid) {
		appInfoMapper.deleteByPrimaryKey(oid);
	}

	public void update(AppInfo info) {
		appInfoMapper.updateByPrimaryKeySelective(info);
	}

	public List<AppInfo> getInfoList(AppInfo info) {
		return null;
	}

	public AppInfo findById(Integer oid) {
		return appInfoMapper.selectByPrimaryKey(oid);
	}

	public List<AppInfo> getList(AppInfo record) {
		// TODO Auto-generated method stub
		return appInfoMapper.getList(record);
	}

}
